package cn.xdmnb.cloud.blog.user.service;

import cn.xdmnb.cloud.blog.user.po.SysRole;
import cn.xdmnb.cloud.blog.user.po.SysUser;
import cn.xdmnb.cloud.blog.user.po.SysUserConnection;
import cn.xdmnb.cloud.blog.user.req.SysBindReq;

import java.util.List;

public interface SysUserService {
    SysUser getUserByUsername(String username);

    List<SysRole> getRolesByUserId(Long userId);

    SysUser getByUserId(String userId);

    List<SysUser> listByUserId(List<String> userIds);

    SysUserConnection getByProviderUserId(String providerId,String providerUserId);

    void bind(SysBindReq bindReq);
}
